Waterloo ACM Programming Contest Fall 2
[and.git] / 10340 - All in all / 10340.cpp
blob50ee1dc1c25e07ed444d1a21238ffe235e6f5f94
1 #include <iostream>
2 #include <string>
4 using namespace std;
6 int main(){
7 string s, t;
8 while (cin >> s >> t){
9 int i, j;
10 for (i=0, j=0; i<s.size() && j<t.size(); ++j){
11 i += (s[i] == t[j]);
13 cout << (i == s.size() ? "Yes":"No") << endl;